<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if ( ! function_exists('the_scripts'))
{ 
	function the_scripts()
	{
            $CI = & get_instance();
            $scripts = $CI->dt_layout->get_scripts();
            foreach ($scripts as $js) {
                echo "\n<script src='$js'></script>";
            }
	}
}

if ( ! function_exists('the_title'))
{ 
	function the_title()
	{
            $CI = & get_instance();
            echo $CI->dt_layout->get_title();
	}
}

if ( ! function_exists('the_styles'))
{ 
	function the_styles()
	{
            $CI = & get_instance();
            $css = $CI->dt_layout->get_css();
            foreach ($css as $style) {
                echo "\n<link rel='stylesheet' type='text/css' media='all' href='$style' />";
            }
	}
}
if ( ! function_exists('the_metas'))
{ 
	function the_metas()
	{
            $CI = & get_instance();
            $metas = $CI->dt_layout->get_metas();
            foreach ($metas as $meta) {
                echo "\n<meta name='{$meta['name']}' content='{$meta['content']}' />";
            }
	}
}

?>
